﻿@Content.Script("jquery.min.js", Url)
@Content.Script("jquery-ui.min.js",Url)
<div id="dialogRegister" title="注册新用户" style="display:none;">
    <iframe id="myFrame" src="" width="98%" height="96%" frameborder="0"></iframe>
</div>
@if (Request.IsAuthenticated)
{
    <span style="color:White;">欢迎您</span> <a@* href="@Url.Content("~/Account/Center")"*@ target="_blank"><b>@Context.User.Identity.Name</b></a>
    if(Roles.IsUserInRole("administrators"))
    {
        @*如果用户为管理员*@
      @Html.ActionLink("管理中心", "Index", "Admin", null,new { target="_blank"})
    }
    <a id="btnLogOff" href="javascript:;">退出</a>
}
else
{
    <div id="dialogLogin" title="登录" style="display:none;">
        @{Html.RenderAction("AjaxLogin", "Account");}
    </div>
    <a class="btnLogin" href="javascript:;">登录</a>
    <a id="btnRegister" href="javascript:;">注册</a>
}
<script type="text/javascript">
    var serverPath="@Url.Content("~/")";
    var loginPartialUrl="@Url.Content("~/Account/MiniLogOnPartial")";
</script>
@Content.Script("VOD/Login.js", Url)